<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,target-densitydpi=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
		<script type="text/javascript" src="plugin/jquery/jquery-1.12.1.js" ></script>
		<script type="text/javascript" src="common/js/system.js"></script>
		<link rel="stylesheet" href="common/css/mui.min.css" />
	</head>
	
	<script>
	
		//当页面初始化完毕
		$(function(){
			//获取客户端传来的ruleId
			var ruleId = getQueryStr("id");

			var ruleArray = new Array();
			ruleArray['bxgz'] = '保险规则';
			ruleArray['cjwt'] = '常见问题';
			ruleArray['dcgz'] = '搭车规则';
			ruleArray['flsm'] = '法律声明';
			ruleArray['hcxy'] = '合乘协议';
			ruleArray['jfgz'] = '计费规则';
			ruleArray['pcfy'] = '拼车费用';
			ruleArray['pcgy'] = '拼车公约';
			ruleArray['pcgz'] = '拼车规则';
			ruleArray['rzcjwt'] = '认证常见问题';
			ruleArray['txgz'] = '提现规则';
			ruleArray['yssm'] = '隐私说明';
			ruleArray['pchcxy'] = '拼车合乘协议';
			
			document.title = ruleArray[ruleId];
			
			//接收客户端传来的规则名称，根据规则的地址来控制当前页面的跳转
			$.ajax({
				type: "post",
				url: ruleUrl,
				dataType: "jsonp",
				async: false,
				jsonp: "callback",
				jsonpCallback: "success_jsonp",
				data: {
					ruleId: ruleId
				},
				success: function(data){
					var html = data.responseBody.rulesdetail;
					$("#ruleContent").html(html);
				}
			});
		});
	</script>
	
	<style>
		h1{
			margin: 0; 
			font-size: 15px;
			color: #000;
			margin-top: 9px;
		}
		
		p{
			margin: 0;
			margin-top: 10px;
			line-height: 18px;
			color: #373737;
			font-size: 13px;
		}
	
		#ruleContent{
			float: left;
			padding-left: 9px;
			padding-right: 17px;
			padding-bottom: 9px;
		}
	</style>
	
	<body>
		
		<div id="ruleContent" style="float: left; overflow: hidden;">
			 
		</div>
	</body>
</html>
